package com.groupscore.score.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import util.OssTemplate;

@Configuration
public class AppProjectConfig {

    @ConfigurationProperties(prefix="oss") //加载配置文件中的oss属性
    @Bean
    public OssTemplate ossTemplate(){
        return new OssTemplate();
    }

}


